﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.CodeBox.BMS.Code.DataModels
{
    /// <summary>
    /// 角色定义
    /// </summary>
    public class RoleDataModel : BaseAutoIdentityDataModel
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否为系统帐号
        /// </summary>
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 角色状态
        /// </summary>
        public RoleStatus Status { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        /// <remarks>包括菜单和其他命令权限；菜单和其他命令定义用配置文件实现</remarks>
        public List<string> Permissions { get; set; }
    }
}
